//全局变量
var Global = {
	staticURL:null,//静态资源地址
	dynamicURL:null//动态资源地址
};
Global.init=function(option){
	option = option||{};
	if(typeof option.dynamicURL != undefined){
		Global.dynamicURL = option.dynamicURL;
	}
	if(option.staticURL){
		Global.staticURL = option.staticURL;
	}
};

//开启动态加载
Ext.Loader.setConfig({
	enable:true,
	paths:{
		'Ext.ux':'/assets/extjs/examples/ux'
	}
});
//Ext.Loader.setPath('Ext.ux','../assets/extjs/examples/ux');
//Ext.Loader.setPath('Skood.data','../app/data');
Ext.require([
    //'Ext.form.*',
    //'Ext.layout.container.Column',
    //'Ext.tab.Panel'
    '*',
    'Ext.ux.DataTip'
]);
/**
Ext.Loader.setPath('Ext.ux','../assets/extjs/examples/ux');
Ext.require([
	'Ext.grid.*',
    'Ext.data.*',
    'Ext.util.*',
    'Ext.state.*'
]);
*/
Ext.QuickTips.init();
Ext.application({
	name:'Skood',
	appFolder:'app',
	controllers:['MainController',
	             'UserController'],
	stores:['SecurityMenuStore',
	        'UserJsonStore',
	        'RoleStore',
	        'ResourceStore'],	             
	//stores:['ResourceStore'],//为啥必须要在application中、或者mainController中添加了stores:['ResourceStore']grid才能显示
	autoCreateViewport:true       //自动加载app目录下view/Viewport.js文件,开启自动创建Viewport,它将自动去view目录下查找Viewport文件并实例化
	/**
	 init: function() {
        Ext.setGlyphFontFamily('Pictos');
        Ext.tip.QuickTipManager.init();
        Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
    }*/
});

/**
 * Ext.application({
    models: [
        'CarData',
        'CarChart'
    ],
    stores: [
        'CarDataStore',
        'CarChartStore'
    ],
    views: [
        'CarListings'
    ],
    name: 'MyApp',

    launch: function() {
        Ext.create('MyApp.view.CarListings', {renderTo: Ext.getBody()});
    }

});
*/